// dlg.txt

begintalkscript;

variables;

begintalknode 1;
	state = -1;
	nextstate = -1;
	condition = get_sdf(61,1) == 0;
	question = "special";
	text1 = "You step out into the core of Gazaki-Uss. It is a stunning sight. It is clear that the drakons have learned much from the Shapers. As much as they hate their would-be masters, they have borrowed a tendency toward intimidating architecture.";
	text2 = "This enormous chamber is the dark mirror of the great Shaper Council Hall. Dark where the other is light. Dirty and reeking of sulfur where the other is clean. Lumpy and jagged where the other is smooth.";
	text3 = "The mist and shadows make it impossible to see how far this room stretches. However, you can immediately see where Ghaldring and his minions are. In the middle, generating creations as quickly as they can.";
	text4 = "There are several Shapers just inside the entryway, making creations of their own. It is the standard beginning of a duel between Shapers. Sending creations to die and test the defenses of the opponent.";
	text5 = "Then, when one side begins to weaken, battle is joined. But here, in Ghaldring's home, when so few Shapers have made it in to do battle, it will take a great effort to turn the tide.";
	action = SET_SDF 61 1 1;

begintalknode 2;
	state = -1;
	nextstate = -1;
	condition = get_sdf(61,2) == 0;
	question = "special";
	text1 = "You are close enough to the center of the hall to see the meeting place of the drakons. Four massive stone tables surround a grid of magic circles. Ghaldring is standing in the center, flanked by a pair of drakon assistants.";
	text2 = "You note that Ghaldring has other defenses. He is surrounded by four huge pylons, which crackle and hum with energy. No doubt, any of Ghaldring's foes who get too close will receive an unpleasant surprise.";
	action = SET_SDF 61 2 1;

begintalknode 3;
	state = -1;
	nextstate = -1;
	condition = get_sdf(61,3) == 0;
	question = "special";
	text1 = "You are close to the eastern doors of the dome. Two sets of huge, reinforced stone slabs, the sort that would take hours (if not days) to blast through.";
	text2 = "They look like they have been sealed up, undoubtedly to keep Shaper forces from slipping into the rest of the fortress, throwing together a bunch of creations, and causing all sorts of trouble.";
	text3 = "They are sealed now, but they could be opened at a moment's notice if Ghaldring decided to retreat to a new position. This would not be good for the Shapers.";
	action = SET_SDF 61 3 1;

begintalknode 4;
	state = -1;
	nextstate = -1;
	condition = get_sdf(61,11) == 0;
	question = "special";
	text1 = "As you progress through the dome, Ghaldring pauses in his Shaping for a moment. He points at you and begins to shout. His roar carries easily through the cavern.";
	text2 = "_You! You are here! I knew that you would come. I am prepared. You try to turn on me. I will devour you. This dome will be your grave!_";
	text3 = "Then he returns to the work of Shaping.";
	text4 = "From this angle, you can see that there are other drakons in large alcoves in the north and south walls of the dome. These creatures have begun to Shape new hunters.";
	action = SET_SDF 61 11 1;

begintalknode 5;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "Ghaldring has taken a number of heavy wounds. His scaly flanks are scarred, and the floor grows slick with blood. However, this creature, Shaped and Shaped again, does not seem to be slowing down.";
	text2 = "The powerful magic within him seems to be sustaining him. There is enormous power stored within his body. He decides to begin to release it.";
	text3 = "_Little creatures. You think you would challenge a drakon? You have no home. The time of humans is over. The time of serviles will never begin. This will be the age of drakons!_";
	text4 = "He holds his claws wide. The pylons surrounding him begin to hum.";

begintalknode 6;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "One of the pylons surrounding Ghaldring begins to glow brightly. Energy gathers on the crystals and metal prongs that emerge from the device. And then they discharge into the air ...";
	
begintalknode 7;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "At last, Ghaldring has taken too many blows. His body is grievously damaged, and not even his considerable stores of power and essence can repair him quickly enough.";
	text2 = "He falls to his knees. The force of the blow makes the ground vibrate under your feet. He holds his arms wide and bellows, _Enough!_";
	text3 = "You stop and see what he is going to do. He says, _I am defeated. I cannot fight it anymore. But you will not slay me. None have that right._ He closes his eyes.";
	text4 = "And then he does ... something. His whole body shudders. His ribcage suddenly bulges out horribly. Then it sinks back. Whatever just happened in Ghaldring's chest, it was the end. He slumps to the ground, dead.";
	text5 = "And, in a moment, the leader of the drakon portion of the rebellion is gone. Ghaldring is gone. Your mission is a success. You have won, and much else must now follow ...";
	
	
begintalknode 8;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "Astoria collapses to the ground, grievously wounded. At first, you think that she is dead. Then, distracted by the battle, you look back a short time later and see that the body is gone.";
	text2 = "Perhaps she had some sort of powerful protective magic, and she was able to escape somehow. You hope to live long enough to find out.";
	
begintalknode 9;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "Alas, this is a very poor time to turn on the Shapers. You now find yourself deep in rebel territory, alone, with nobody to turn to. And your unusual nature made you very suspect to the Shapers to begin with.";
	text2 = "On this, the Shapers and drakons agree. They are all better off without you. You make a noble effort to flee to safety (as if any place is safe to you now), but the constant battles, one after another, finally wear you down.";
	code =
		erase_char(1000);
	break;
	
begintalknode 10;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "You try to talk to this Shaper, but you don't get a response. Making this many creations this quickly demands total concentration.";
	
begintalknode 11;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "__";
	
begintalknode 12;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "__";
	
begintalknode 13;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "__";
	
begintalknode 14;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "__";
	
begintalknode 15;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "__";
	
begintalknode 16;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "__";


	
//

begintalknode 30;
	state = -1;
	nextstate = 30;
	condition = 1;
	question = "Name";
	text1 = "There is a Shaper standing in the middle of the causeway, feet firmly planted, making creations as quickly as he can.";
	text2 = "You have to admire his skill. The sustained assault has exhausted him, but he makes creations with calm, professional speed. Not a scale or a vein is out of place. His beasts are made calm, obedient, and ready to die.";
	text3 = "He puts the final touches on a kyshakk and turns to you. _I am Shaper Perlang. I am glad you are here. We need more power, if we are going to push through and reach the foul drakons._";
	text5 = "Sage Perlang pauses in the creation of a new kyshakk. The cloud of essence hangs suspended in the air. He begins to absorb the contents of an essence pod and says, _What is it? Speak quickly._";
	action = INTRO;

begintalknode 31;
	state = 30;
	nextstate = -1;
	condition = 1;
	question = "Where are you from?";
	text1 = "_I had just arrived from the Nodye Coast when this assault began. I immediately asked to come along. I received that great honor._";

begintalknode 32;
	state = 30;
	nextstate = 31;
	condition = 1;
	question = "How is the assault going?";
	text1 = "_We are here. We rolled back the creation rabble and reached the core of Gazaki-Uss. Our target lies before us. But that is the good part._";

begintalknode 33;
	state = 31;
	nextstate = -1;
	condition = 1;
	question = "What is the bad part?";
	text1 = "_We have lost much strength. We are tiring. Our essence supplies are depleted. Ghaldring is still fresh. That is why it is good that you are here._";

begintalknode 34;
	state = 31;
	nextstate = -1;
	condition = 1;
	question = "Did you take heavy losses getting here?";
	text1 = "_Only a few humans, fortunately. Many creations died. We honor the loss of those poor, dumb creatures. If nothing is done soon, however, we all will fall._";

begintalknode 35;
	state = 30;
	nextstate = -1;
	condition = 1;
	question = "What should I do?";
	text1 = "_I am too busy to give orders now. You must speak with Astoria. The Councilor is here with us. She is to the north, preparing an attack. Now, leave me. I must hold the rogues at bay._";
	text2 = "He resumes Shaping his kyshakk.";
	action = END_TALK;

//

begintalknode 50;
	state = -1;
	nextstate = 50;
	condition = 1;
	question = "Name";
	text1 = "You are surprised to find that Councilor Astoria is here. A full member of the Council has moved to the front of the battle, instead of directing from the back. Alas, you don't have time to ponder how remarkable this is.";
	text2 = "Astoria sits alone, lost in thought, concentrating on something. It is quite strange. Then she opens her eyes and sees you. _There you are. You come at last. It is good. Our essence is low. Our concentration is fading._";
	text3 = "_We must strike quickly and destroy Ghaldring, or we are all dead._";
	text5 = "Astoria closes her eyes a moment and concentrates on something. Then she opens them again. _Yes. We have little time left. We must strike. What do you need?_";
	action = INTRO;

begintalknode 51;
	state = 50;
	nextstate = 51;
	condition = 1;
	question = "What were you concentrating on?";
	text1 = "_I am using my senses. I am watching. I am examining Ghaldring and understanding him, so that, when I strike, I can find his weak points._";
	text2 = "_I am not making creations yet. I will not reveal my power. When the time comes, I hope my blow will be decisive._";

	
begintalknode 52;
	state = 51;
	nextstate = -1;
	condition = 1;
	question = "Have you found any of his weaknesses yet?";
	text1 = "_Not yet. I ... I confess that I underestimated him. He is a creation, but he is as mighty a Shaper as any I have ever met. Had we of the Council emerged and confronted one of these creatures sooner ..._";
	text2 = "She shakes her head. _We have been insular. It has cost us. I assure you, when the war is over, I will make sure that there are changes._";
	
begintalknode 53;
	state = 51;
	nextstate = -1;
	condition = 1;
	question = "See anything interesting about his defenses?";
	text1 = "_I have. He is surrounded by four huge pylons. For now, they are dormant. Easy to ignore. I do not think they will stay that way._";
	text2 = "_When the final charge comes, you might want to try to sabotage them, before they can become active._";
	
begintalknode 54;
	state = 50;
	nextstate = 52;
	condition = 1;
	question = "Why have you come here?";
	text1 = "_Because ... Once, the Council was active. We visited every province. We led every charge. We built the Shaper Empire with our hands._";
	text2 = "_That stopped centuries ago. Now we face the consequences of that inactivity. I am here to provide a good example._";
	
begintalknode 55;
	state = 52;
	nextstate = -1;
	condition = 1;
	question = "Are you guilty of that too?";
	text1 = "_I am. I spent too much time in Haria-Kel. If I left more often, I might not have allowed the ... the things that happened in my lands. In the Shadow Road._";
	text2 = "_But that is a conversation for another day._";
	
begintalknode 56;
	state = 52;
	nextstate = -1;
	condition = 1;
	question = "Who are you being an example for?";
	text1 = "_The Councilors of the coastal provinces. Sharissa. Nawaz. Even Shema. Especially Shema._";
	text2 = "_They have the most to lose and have done the least to protect it. That must change._";
	
begintalknode 57;
	state = 52;
	nextstate = -1;
	condition = 1;
	question = "Do you really think the Shapers can be reformed?";
	text1 = "_It doesn't matter what I think. I am sworn to do all I can for them. And that is what I will do. No more doubt._";
	
begintalknode 58;
	state = 50;
	nextstate = 53;
	condition = gf(61,5) < 2;
	question = "What do I need to do?";
	text1 = "She opens one of the pouches on her belt, removes a glowing orb, and hands it to you. It's about three inches in diameter. It's also burning hot to the touch. You quickly put it in your pack.";
	text2 = "_Your first mission is simple enough. Take the orb to the eastern doorways. Throw it through the first series of doors. Then run._";
	code =
		if (gf(61,5) == 0) {
			sf(61,5,1);
			set_spec_item(9,1);
			}
			else rs(1);
	break;
		
begintalknode 59;
	state = 53;
	nextstate = -1;
	condition = 1;
	question = "What will the orb do?";
	text1 = "_Explode. Hopefully, it will cut off Ghaldring's escape route. We're not going to charge him, let his defenses tear us apart, and start wearing him down only to let him run away once we start making progress._";

begintalknode 60;
	state = 53;
	nextstate = -1;
	condition = 1;
	question = "How can I get to the gates?";
	text1 = "_Run. I suggest staying close to the walls of the dome. That will hopefully make it take longer for him to notice you._";

begintalknode 61;
	state = 50;
	nextstate = 54;
	condition = gf(61,5) > 0;
	question = "Can I get some assistance?";
	text1 = "_Not from me or the other Shapers. All of our strength is being held back to kill Ghaldring. However, there are two groups of creations that you might be able to master and utilize._";

begintalknode 62;
	state = 54;
	nextstate = -1;
	condition = 1;
	question = "Where is the first group?";
	text1 = "She points to the cells behind her. _I had to lock some creations in there. The Shaper who made them died. They want to attack Ghaldring. It was their final order. But then the presence of so many rogues made them unstable._";
	text2 = "_They need a strong master. If you can calm them, they might be able to obey their final order._";

begintalknode 63;
	state = 54;
	nextstate = -1;
	condition = 1;
	question = "Where is the second group?";
	text1 = "She points to the south. _There is a storeroom down there. The rogues drove some of our creations in there and trapped them. We stopped controlling them then. We couldn't afford the loss of focus._";
	text2 = "_If you can free and calm them, you might be able to get them to protect you._";

begintalknode 64;
	state = 50;
	nextstate = 55;
	condition = gf(61,6) > 0 && gf(61,5) == 1;
	question = "I've collapsed the eastern tunnel.";
	text1 = "_I was hoping that's what that noise was. And the drakons have outflanked us and sealed off our escape route. They think that they are going to trap and kill a full member of the Council. They are wrong._";
	text2 = "_It is almost time to attack. Ghaldring is still strong, but our power is fading._";
	code =
		sf(61,5,2);
	break;
	
begintalknode 65;
	state = 55;
	nextstate = -1;
	condition = 1;
	question = "How will the attack proceed?";
	text1 = "_I and the other Shapers will create our final set of creations and charge. We will attack Ghaldring and keep attacking until he or we are dead._";
	text2 = "_You must come with us when we charge. We will need your support. Do not delay._";

begintalknode 66;
	state = 55;
	nextstate = -1;
	condition = 1;
	question = "Do you think that we can win?";
	text1 = "_We are far past the time for doubt._";

begintalknode 67;
	state = 55;
	nextstate = 50;
	condition = 1;
	question = "What should I do?";
	text1 = "_You will need to attack with us. We will need all the force we can summon to bring the monster down._";
	text2 = "_Prepare. Quickly._";

begintalknode 68;
	state = 50;
	nextstate = -1;
	condition = gf(61,5) == 2;
	question = "I need to prepare more before the final attack.";
	text1 = "_Then hurry. There is little time left._";
	action = END_TALK;

begintalknode 69;
	state = 50;
	nextstate = -1;
	condition = gf(61,5) == 2;
	question = "I am ready. Begin the charge.";
	text1 = "She nods and steps forward. Then she begins to speak. She speaks in a normal, conversational voice, but some magical trick causes her words to carry to every corner of the cavern.";
	text2 = "_Ghaldring. I am Astoria of the Shaper Council. I declare you to be a rogue creation, of a variety declared Barred by Shaper law. You are forbidden. You will now be absorbed._";
	text3 = "Ghaldring roars in fury. _Come to me, Shaper. I will take you! I will break you and parade you in every city in our lands! I am ready!_";
	text4 = "Astoria nods. Her lips turn in a little smile. And then she calmly walks forward.";
	action = END_TALK;
	code =
		sf(61,5,3);
		
		set_walk_speed(15,24);
		set_walk_speed(8,24);
		set_walk_speed(11,24);
		set_walk_speed(13,24);
		
		
		set_act_at_dist(1001,1);
		set_attitude(1001,3);
	break;
	
begintalknode 70;
	state = 50;
	nextstate = -1;
	condition = gf(61,5) < 2;
	question = "There is something else I need to ask about.";
	text1 = "_No. Go and follow your orders. We can chat when the battle is won._ She closes her eyes and resumes her concentration.";
	action = END_TALK;
	
//

// 70

begintalknode 75;
	state = -1;
	nextstate = 70;
	condition = 1;
	question = "Name";
	text1 = "This was a cell, used to hold imprisoned creations before examination and interrogation by the drakons. Now it holds several kyshakks.";
	text2 = "You can immediately sense how agitated they are. They are masterless. Only the skill displayed in their original creation has kept them from going rogue.";
	text3 = "The unfortunate creatures will go rogue soon and need to be destroyed, unless someone can bring them under control.";
	text5 = "The kyshakks are still here, calmly waiting for something.";
	code =
		if (gf(61,7) == 0)
			rs(5);
			else {
				rs(2); rs(3);
				}
	break;
	
begintalknode 76;
	state = 70;
	nextstate = -1;
	condition = gf(61,7) == 0 && get_stat(20) < 12;
	question = "(Try to control them.)";
	text1 = "You close your eyes, extend your will, and try to calm these reptiles' jumbled brains. It is too difficult. The moment you make contact, they let out long, angry hisses.";
	text2 = "You back away before your presence causes even more harm.";
	action = END_TALK;

begintalknode 77;
	state = 70;
	nextstate = -1;
	condition = gf(61,7) == 0 && get_stat(20) >= 12;
	question = "(Try to control them.)";
	text1 = "You close your eyes, extend your will, and try to calm these reptiles' jumbled brains. It is too difficult. The moment you make contact, they flinch and hiss at you. You double your efforts, soothing them and erasing their doubts.";
	text2 = "Soon, you have succeeded. The kyshakks are fully under control. However, oddly, they don't move. They just stare at you.";
	code =
		sf(61,7,1);
	break;
	
begintalknode 78;
	state = 70;
	nextstate = -1;
	condition = gf(61,7) > 0;
	question = "Come with me.";
	text1 = "The kyshakks just stare at you. They are waiting for something.";
	text2 = "You realize that, at some point, somebody gave them orders. These orders have not been forgotten.";
	text3 = "When the right trigger occurs, they will act. Until then, they are content to wait here calmly. Which seems to be the best you can do under the circumstances.";
	action = END_TALK;

begintalknode 79;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "Walk away.";
	text1 = "The kyshakks stare at you as you leave. At least they aren't rogue.";
	action = END_TALK;



//

begintalknode 90;
	state = -1;
	nextstate = 90;
	condition = 1;
	question = "Name";
	text1 = "This is a large storeroom, full of some of the considerable amount of supplies and weaponry stored in Gazaki-Uss. There are also several wingbolts, who were locked in here. Fortunately, they aren't hostile.";
	text2 = "Though they aren't rogue, they are masterless. You can sense that the contact between them and their maker has been broken. Now they flit about, stunned, unsure how to proceed.";
	text3 = "These unfortunate creatures might even eventually go rogue and need to be destroyed, unless someone brings them under control.";
	text5 = "The wingbolts are still here, flying around the storeroom.";
	code =
		if (gf(61,8) == 0)
			rs(5);
			else {
				rs(2); rs(3);
				}
	break;

begintalknode 91;
	state = 90;
	nextstate = -1;
	condition = gf(61,8) == 0 && get_stat(20) < 9;
	question = "(Try to control them.)";
	text1 = "By now, it's second nature. You close your eyes, extend your will, and try to calm these wingbolts' jumbled brains. It is too difficult. The moment you make contact, they let out long, angry hisses.";
	text2 = "You back away before your presence causes any harm. They aren't going rogue yet, but you're pushing them in that direction.";
	action = END_TALK;


begintalknode 92;
	state = 90;
	nextstate = -1;
	condition = gf(61,8) == 0 && get_stat(20) >= 9;
	question = "(Try to control them.)";
	text1 = "By now, it's second nature. You close your eyes, extend your will, and try to calm these wingbolts' jumbled brains. It is not too difficult. The moment you make contact, they eagerly accept your control.";
	text2 = "For loyal war creations, being out of control can be very upsetting. Now the wingbolts fly around, waiting for their first order.";
	action = END_TALK;
	code =
		sf(61,8,1);
	break;
	
begintalknode 93;
	state = 90;
	nextstate = -1;
	condition = gf(61,8) > 0;
	question = "Come with me.";
	text1 = "The wingbolts happily accept your command. They begin to flitter around after you, ready to happily die to defend their new controller.";
	action = END_TALK;
	code =
		sf(61,9,1);
		set_attitude(1002,3);
	break;

begintalknode 94;
	state = 90;
	nextstate = -1;
	condition = 1;
	question = "Just wait here.";
	text1 = "The wingbolts keep flying in agitated circles, waiting for something to do.";
	action = END_TALK;

// 110

begintalknode 110;
	state = -1;
	nextstate = 110;
	condition = 1;
	question = "Name";
	text1 = "There is a woman waiting for you by the east gate. A Lifecrafter and general of the rebellion. You recognize her. General Greta, a brave opponent of the Shapers since the very beginning.";
	text2 = "And yet, in her eyes, as everything collapses around her, you see nothing but calm. She looks terribly tired. She knows that she is in danger of reaching the end. And yet, she doesn't have the strength to rebuild the rebellion yet again.";
	text3 = "She points her blade at you. _We should have killed you in the beginning. We should have had Mehken arrange an accident for you. It was a mistake, and we have never been able to afford mistakes._";
	text4 = "_But I still have the chance to end you. It may be the last thing I do, but I will correct one mistake at last._";
	code =
		set_attitude(45,10);
	break;
	
begintalknode 111;
	state = 110;
	nextstate = -1;
	condition = 1;
	question = "You don't have to die here. You can just flee.";
	text1 = "_No. No words. No trickery. I cannot see everything collapse again. I've fought too much. Lost too many friends._";
	text2 = "_Maybe I will survive today. Maybe I will fight again. But first, I will see you dead._";
	
begintalknode 112;
	state = 110;
	nextstate = -1;
	condition = 1;
	question = "I wish you could survive, but if you will force me to kill you ...";
	text1 = "Greta gives you a little salute. _I appreciate the sentiment. I'd like it more if you weren't trying so hard to crush us. I am no creation, only a human who longs for freedom. Who deserves ..._";
	text2 = "She shakes her head. _Oh, enough. It is time for the end ..._ She advances upon you.";
	action = END_TALK;

begintalknode 113;
	state = 110;
	nextstate = -1;
	condition = 1;
	question = "Do you rebels ever shut up about anything? (Attack.)";
	text1 = "Greta gives a little shrug. She starts to say something, only to realize that it's a hypothetical question.";
	text2 = "She shakes her head. _Oh, enough. It is time for the end ..._ She advances upon you.";
	action = END_TALK;
	

////

begintalknode 120;
	state = -1;
	nextstate = 120;
	condition = 1;
	question = "";
	text1 = "There is a woman waiting for you by the east gate. A Lifecrafter and general of the rebellion. You recognize her. General Greta, a brave opponent of the Shapers since the very beginning.";
	text2 = "And yet, in her eyes, as everything collapses around her, you see nothing but calm. At first, you think that she is going to fight to protect Ghaldring.";
	text3 = "Instead, she smiles. She gives you a little bow. And then she turns and walks away.";
	
begintalknode 121;
	state = 120;
	nextstate = -1;
	condition = 1;
	question = "Wait. Where are you going?";
	text1 = "She turns and looks over her shoulder. _I have always fought for one thing. A peaceful future, with honorable leaders who treat everyone, creation and human alike, with respect._";
	text2 = "_And, I think, the best way to bring that about is to not defend Ghaldring now._";
		
begintalknode 122;
	state = 120;
	nextstate = -1;
	condition = 1;
	question = "Oh, no! A rebel is escaping! (Attack.)";
	text1 = "General Greta looks stunned to find that you are attacking her now. Before she can blather on about anything else, you aim your first blow.";
	action = END_TALK;
	code =
		set_attitude(45,10);
	break;
	
begintalknode 123;
	state = 120;
	nextstate = -1;
	condition = 1;
	question = "Goodbye.";
	text1 = "_Goodbye. And good luck._ She walks off. Someone opens the eastern gate slightly, just enough to let her and nobody else through.";
	action = END_TALK;


// 
	
begintalknode 130;
	state = -1;
	nextstate = 130;
	condition = 1;
	question = "Name";
	text1 = "You examine this enormous pylon. It draws power from conduits under the stone floor. Crystals and metal prongs stick out in all directions, ready to spray the air with magical power.";
	text2 = "The power flow is currently cut off.";
	text3 = "The device is fairly simple and is mainly designed to keep too much energy from passing through it. Sending a deadly jolt of power through is not an option.";
	text4 = "However, with skill and the correct equipment, you might be able to cut the power off.";
	code =
		if (gf(61,gf(61,23)) > 0) {
			rs(3); rs(4);
			}
			else rs(2);
	break;


begintalknode 131;
	state = 130;
	nextstate = -1;
	condition = gf(61,gf(61,23)) == 0 && num_of_item(255) < 3;
	question = "Cut off the power. (Use 3 living tools.)";
	text1 = "You don't have enough tools.";
	action = END_TALK;
	
begintalknode 132;
	state = 130;
	nextstate = -1;
	condition = gf(61,gf(61,23)) == 0 && num_of_item(255) >= 3 && get_stat(21) < 2 * (gf(61,23) - 16);
	question = "Cut off the power. (Use 3 living tools.)";
	text1 = "You start to use your tools, only to find that this device is far more complicated than it appeared. Or, at least, its safeguards are.";
	text2 = "If you had a few uninterrupted hours, you might be able to figure out how it works. As it is, however, you are forced to leave it alone. Perhaps the defenses of one of the other pylons are less comprehensive.";
	action = END_TALK;

begintalknode 133;
	state = 130;
	nextstate = -1;
	condition = gf(61,gf(61,23)) == 0 && num_of_item(255) >= 3 && get_stat(21) >= 2 * (gf(61,23) - 16);
	question = "Cut off the power. (Use 3 living tools.)";
	text1 = "You start to use your tools, only to find that this device is far more complicated than it appeared. Or, at least, its safeguards are. Fortunately, the brave sacrifice of your living tools enables you to pass its defenses.";
	text2 = "After that, it is a simple matter to disconnect a small conduit and crack a focusing crystal. The flow of power from the hidden conduits into the core of the pylon is cut off.";
	action = END_TALK;
	code =
		take_num_of_item(255,3);
		sf(61,gf(61,23),1);
	break;

begintalknode 134;
	state = 130;
	nextstate = -1;
	condition = 1;
	question = "Leave the pylon alone.";
	text1 = "You back away. There are plenty of other things to worry about here.";
	action = END_TALK;

// 150

begintalknode 150;
	state = -1;
	nextstate = 150;
	condition = 1;
	question = "Name";
	text1 = "You step through the open doorway. This is probably where you were meant to throw the glowing orb.";

begintalknode 151;
	state = 150;
	nextstate = -1;
	condition = 1;
	question = "Throw it.";
	text1 = "You fling the orb at the east wall. It hits the stone, cracks, and falls to the floor.";
	text2 = "Clouds of smoke and flashes of blinding light start to emerge from the orb. The air grows very hot. Something big is about to happen ...";
	action = END_TALK;
	code =
		set_spec_item(9,-1);
		sf(61,10,1);
	break;
	
begintalknode 152;
	state = 150;
	nextstate = -1;
	condition = 1;
	question = "Not yet.";
	text1 = "It sounds like this orb is supposed to do something pretty spectacular. It's not time yet.";
	action = END_TALK;

	
begintalknode 155;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = ".";
	text1 = "The remarkable power stored within the crystal orb suddenly breaks loose all at once. The fireball doesn't affect the enormous eastern doors. It does, however, shake a ton of rubble loose from the ceiling.";
	text2 = "It won't take long for the drakons to clear the debris away. For several hours, however, nothing is going to be escaping the dome this way.";
	action = END_TALK;	

///
 
begintalknode 160;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = ".";
	text1 = ".";